[UIScreen applicationFrame] returning incorrect rectangle on landscape application launch (iPhone/iP

Posted by jbrennan on Stack Overflow See other posts from Stack Overflow or by jbrennan
Published on 2010-04-19T02:58:05Z Indexed on 2010/04/19 3:03 UTC
Read the original article Hit count: 661

Having trouble getting the correct bounds for my iPad application when launching it in landscape mode. I have the proper keys set in my Info.plist file, and my view controllers launch properly in landscape (and portrait, natch).

In my applicationDidFinishLaunching: method I'm calling a selector after a 3 second delay, and that method makes a call to [[UIScreen applicationFrame]`, but it's returning me a portrait frame (ie height > width).

Does anyone know how to fix this? It smells like a bug to me (if so I'll file a radar), but if it's intended behaviour, where is it documented?

© Stack Overflow or respective owner

Related posts about uikit

Related posts about cocoa-touch